<h1>用户登录</h1>

<div class="row">
  <div class="col-sm-5">
    <%= form_tag sessions_path, method: 'post'  do %>
      <div class="form-group">
        <%= text_field_tag :username, nil, class: 'form-control', placeholder: '用户名', title: '用户名最少6个字符' %>
      </div>
      <div class="form-group">
        <input type="password" name="password" placeholder="密码" class="form-control" id="form_password">
      </div>
      <input type="submit" value="登录" class="btn btn-primary">
      <%= link_to '注册', new_user_path %>
    <% end %>
  </div>
</div>
